from django.conf.urls import url
from . import views

urlpatterns = [

]

from rest_framework.routers import DefaultRouter

#  创建DefaultRoute对象
route = DefaultRouter()

#  定义自动生成的路径和指定视图
route.register(r'infos', views.AreaInfoViewSet, base_name='area')

#  将自动生成的url添加到urlpatterns列表中
urlpatterns += route.urls
